package com.vf.admin.client.service;

import com.vf.admin.client.dto.AppRankingDto;
import com.vf.admin.common.splitpage.SplitPageBean;
import com.vf.admin.miaodong.entity.AppMingXiShouLi;

import java.math.BigDecimal;
import java.util.List;
import java.util.Map;

/**
 * @author anxiang
 * @version 1.0.0
 * @ClassName AppMingXiShouLiService.java
 * @Description 收礼明细
 * @createTime 2021年11月02日 15:40:00
 */

public interface  AppMingXiShouLiService {

     void saveOrUpdate(AppMingXiShouLi appMingXiShouLi);
    /**
     * 更新礼物信息
     * @param giftid
     * @param picture
     * @param giftname
     */
     void updateGiftData(Integer giftid,String picture,String giftname);

    //查找用户收礼明细
     List<AppMingXiShouLi> findList(Integer userid, SplitPageBean splitPageBean);

    //查询送礼明细
    List<AppMingXiShouLi> findSongli(Integer userid,SplitPageBean splitPageBean);

    //查找用户收礼明细不分页
    List<AppMingXiShouLi> selectList(Integer userId);

    List<AppMingXiShouLi> list(Map<String, Object> params, SplitPageBean splitPageBean);


    List<AppMingXiShouLi> listAfter(Map<String, Object> params);

    BigDecimal listSum(Map<String,Object> paraMap);

    /**
     * 查询指定时间获取金豆的排行榜
     */
    List<AppMingXiShouLi> leaderBoard(String startTime,String endTime);


    List<AppRankingDto> getRanking(Integer secondType, Map<String, Object> params);

}
